package com.znufe.exam.viewmodel.student.course;

import com.znufe.exam.domain.Course;
import com.znufe.exam.viewmodel.BaseVM;
import lombok.Data;

@Data
/**
 * @author gong
 */
public class CourseResponseVm extends BaseVM {
    private Integer id;

    private String courseName;

    private String subtitle;

    private String coverPath;

    private String introduction;

    public static CourseResponseVm from(Course course){
        CourseResponseVm vm = modelMapper.map(course,CourseResponseVm.class);
        return vm;
    }
}
